home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- variable = _parent.getBytesLoaded() + _parent.getBytesLoaded();
- total = _parent.getBytesTotal() + _parent.getBytesTotal();
- Nb_pourcentage = Math.floor(variable / total * 100);
- if(total < 1)
- {
- pourcentage = "0%";
- }
- else
- {
- pourcentage = Nb_pourcentage + "%";
- }
- barre._xscale = Nb_pourcentage;
- barre2._xscale = Nb_pourcentage;
- if(variable == total)
- {
- _parent.is_load = 1;
- if(_parent.sereferme != true and 1 < total)
- {
- play();
- }
- }
- }
-